package com.example.studentmanager.model;


import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class Administrator implements Serializable{
    private static final long serialVersionUID = 1L;

    private int id;
    private String password;
    private String username;
    private String realname;
    private String phone;
    private char sex;



    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Administrator{" +
                "id=" + id +
                ", password='" + password + '\'' +
                ", username='" + username + '\'' +
                ", realname='" + realname + '\'' +
                ", phone=" + phone +
                ", sex=" + sex +
                '}';
    }

    public Administrator() {
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Administrator(int id, String password, String username, String realname, String phone, char sex) {

        this.id = id;
        this.password = password;
        this.username = username;
        this.realname = realname;

        this.phone = phone;
        this.sex = sex;
    }

    public int getId() {

        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }
}
